package at.fhj.antesk.steamvaluecalc.view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JTable;
import java.awt.GridLayout;
import javax.swing.JMenuBar;
import javax.swing.JScrollPane;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.SwingConstants;
import javax.swing.JSeparator;

public class Overview extends JFrame {

	private static final long serialVersionUID = -2117485508359785811L;
	private JPanel contentPane;
	private JTable mainTable;
	private JPanel mainPanel;
	private JPanel accountPanel;
	private JLabel lblAccountName;
	private JPanel statusPanel;
	private JLabel lblStatuslabel;
	private JSeparator separator;
	private JPanel panel;
	private JLabel lblGamedetails;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Overview frame = new Overview();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Overview() {
		setTitle("Steam Profile Analyzer 2.0");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 800, 512);
		
		JMenuBar menuBar = new JMenuBar();
		setJMenuBar(menuBar);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(new BorderLayout(0, 0));
		
		mainPanel = new JPanel();
		contentPane.add(mainPanel, BorderLayout.CENTER);
		mainPanel.setLayout(new BorderLayout(0, 0));
		
		mainTable = new JTable();
		JScrollPane scrollPane = new JScrollPane(mainTable);
		mainPanel.add(scrollPane, BorderLayout.CENTER);
		
		accountPanel = new JPanel();
		mainPanel.add(accountPanel, BorderLayout.WEST);
		accountPanel.setLayout(new BorderLayout(0, 0));
		
		lblAccountName = new JLabel("Account Name");
		lblAccountName.setFont(new Font("Arial", Font.PLAIN, 13));
		accountPanel.add(lblAccountName, BorderLayout.NORTH);
		
		separator = new JSeparator();
		accountPanel.add(separator, BorderLayout.CENTER);
		
		panel = new JPanel();
		accountPanel.add(panel, BorderLayout.SOUTH);
		panel.setLayout(new BorderLayout(0, 0));
		
		lblGamedetails = new JLabel("GameDetails");
		panel.add(lblGamedetails, BorderLayout.NORTH);
		
		statusPanel = new JPanel();
		mainPanel.add(statusPanel, BorderLayout.SOUTH);
		
		lblStatuslabel = new JLabel("StatusLabel");
		lblStatuslabel.setFont(new Font("Arial", Font.PLAIN, 12));
		statusPanel.add(lblStatuslabel);
		
	}

}
